//
//  IWUser.m
//  ItcastWeibo
//
//  Created by apple on 14-5-8.
//  Copyright (c) 2014年 itcast. All rights reserved.
//

#import "User.h"
#import "MJExtension.h"

@implementation User
MJCodingImplementation

+(void)load{
    [User mj_setupReplacedKeyFromPropertyName:^NSDictionary *{
        return @{@"ID" : @"id", @"desc" : @"description"};
    }];
}

/** 用户的认证类型，-1：没有认证，0，认证用户，2,3,5: 企业认证，220: 达人 */
- (NSString *)verifiedName{
    switch (_verified_type) {
        case 0:
            _verifiedName = @"avatar_vip_os7";
            break;
            
        case 2:case 3:case 5:
            _verifiedName = @"avatar_enterprise_vip_os7";
            break;
            
        case 220:
            _verifiedName = @"avatar_grassroot_os7";
            break;
            
        default:
            _verifiedName = nil;
            break;
    }
    return _verifiedName;
}
@end
